package com.gu.redisdemo.tsst;

import com.gu.redisdemo.demo.RedisDemo;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author Mr.Gu
 * @date 2020/9/29 16:37
 * @function :
 **/
@RestController
public class RedisTest {

    @Autowired
    private RedisDemo redisDemo;

    @GetMapping("/abc")
    public void abc() {
        //redisTemplate.opsForValue().set("name","zhangsan");
       redisDemo.saveRedis();
    }

    public void testBransh() {
        System.out.println("这是测试分支的");
    }

}
